POV-Ray : Newsgroups : povray.general : a function : Re: a function Server Time
6 Aug 2024 04:16:21 EDT (-0400)
  Re: a function  
From: Slime
Date: 26 May 2002 15:39:17
Message: <3cf139e5$1@news.povray.org>
> Thanks very nice (that was easy!). Now for a harder question - is there
any
> way to change a 2D function such as this into a 3D function?

This will probably do something like that:

function {
   J*sin(A*sin(M*x) + B*cos(N*y) - C*sin(O*z))
+ K*cos(D*cos(P*x) + E*sin(Q*y) - F*cos(R*z))
- L*sin(-G*sin(S*x) - H*cos(T*y) + I*sin(U*z))
}

But I sorta made it up as I went along. Variables are from A to U. This
really might not create as interesting patterns as the 2D one does, because
it's not as symmetrical of a function.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.